<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/user.js"></script>
    <link rel="stylesheet" type="text/css" href="__CSS__/pass.css" />
    <style type="text/css">
        .all366C li{height: 35px;line-height: 35px;}
    </style>
    <title>修改重置密码</title>
</head>
<body>
<div class="box">
    <a href="/" target="_blank"><img src="{$logo.login}" /></a>
    <div class="boxm">
        <div class="wrap">
            <form action="{:U('Login/passEdit')}" method="post" name="myForm" id="myForm">
                <input type="hidden" name="id" value="{$info.id}">
                <div>
                    <img id="pic" src="__IMG__/email_pass3.gif" width="747" height="41" />
                    <ul class="all366C" style="margin-top:25px;">
                        <li class="get">
                            <label>新密码：</label>
                            <input type="password"  style="width:200px;"  name="password" id="password" class="txt"></li>
                        <li>
                            <label>确认密码：</label>
                            <input type="password"  style="width:200px;"  name="repassword" id="repassword" class="txt"></li>
                        <li>
                            <a href="javascript:;" onclick="return sub()" class="btnok ok2" >修改密码</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function sub(){
        var password = $("#password").val();
        var repassword = $("#repassword").val();
        if(password=='' || repassword==''){
            alert('密码不能为空!');
            return false;
        }else if(password.length<5){
            alert('密码长度要大于6位!');
            return false;
        }else if(password!=repassword){
            alert('两次输入的密码不一致!');
            return false;
        }
        $("#myForm").submit();
    }

</script>
</body>
</html>